.class public final Lnbisdk/qj;
.super Ljava/lang/Object;


# instance fields
.field private aA:Lnbisdk/ao;

.field private ba:Landroid/graphics/Paint;

.field private xc:Lnbisdk/gu;

.field private xd:Lnbisdk/gu;

.field private xe:Ljava/util/Hashtable;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Hashtable",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private xf:Lnbisdk/y;

.field private xg:Lnbisdk/ij;

.field private xh:Landroid/graphics/Rect;

.field private xi:Landroid/graphics/Rect;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Lnbisdk/ij;Lnbisdk/ao;Lnbisdk/gu;Lnbisdk/gu;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p2, p0, Lnbisdk/qj;->aA:Lnbisdk/ao;

    iput-object p3, p0, Lnbisdk/qj;->xc:Lnbisdk/gu;

    iput-object p4, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    iput-object p1, p0, Lnbisdk/qj;->xg:Lnbisdk/ij;

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lnbisdk/qj;->xh:Landroid/graphics/Rect;

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lnbisdk/qj;->xi:Landroid/graphics/Rect;

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lnbisdk/qj;->ba:Landroid/graphics/Paint;

    return-void
.end method

.method private a(Lnbisdk/lm;ILnbisdk/y;)V
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    invoke-virtual {p1}, Lnbisdk/lm;->it()Z

    move-result v0

    if-eqz v0, :cond_5

    invoke-virtual {p1}, Lnbisdk/lm;->ir()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lnbisdk/qj;->xe:Ljava/util/Hashtable;

    invoke-virtual {v1, v0}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    if-eqz v0, :cond_5

    iget-object v1, p0, Lnbisdk/qj;->xg:Lnbisdk/ij;

    invoke-virtual {v1}, Lnbisdk/ij;->kj()Z

    move-result v1

    if-eqz v1, :cond_7

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v1

    iget-object v2, p3, Lnbisdk/y;->S:Lnbisdk/y$b;

    move v3, v5

    move-object v4, v2

    move v2, v5

    :goto_0
    if-eqz v4, :cond_4

    if-nez v3, :cond_0

    iget v3, v4, Lnbisdk/y$b;->rl:I

    if-ne p2, v3, :cond_2

    :cond_0
    move v3, v6

    :goto_1
    if-nez v2, :cond_1

    iget v2, v4, Lnbisdk/y$b;->rk:I

    if-ne v1, v2, :cond_3

    :cond_1
    move v2, v6

    :goto_2
    iget-object v4, v4, Lnbisdk/y$b;->rm:Lnbisdk/y$b;

    goto :goto_0

    :cond_2
    move v3, v5

    goto :goto_1

    :cond_3
    move v2, v5

    goto :goto_2

    :cond_4
    if-eqz v3, :cond_6

    if-eqz v2, :cond_6

    move v1, v6

    :goto_3
    if-eqz v1, :cond_7

    invoke-virtual {p1, v6}, Lnbisdk/lm;->E(Z)V

    :cond_5
    :goto_4
    return-void

    :cond_6
    move v1, v5

    goto :goto_3

    :cond_7
    iget-object v1, p0, Lnbisdk/qj;->xf:Lnbisdk/y;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-virtual {v1, p2, v0}, Lnbisdk/y;->add(II)V

    goto :goto_4
.end method

.method private ar()V
    .locals 13

    iget-object v0, p0, Lnbisdk/qj;->aA:Lnbisdk/ao;

    invoke-virtual {v0}, Lnbisdk/ao;->an()Landroid/graphics/Bitmap;

    move-result-object v6

    iget-object v0, p0, Lnbisdk/qj;->xg:Lnbisdk/ij;

    invoke-virtual {v0}, Lnbisdk/ij;->ke()Landroid/graphics/Canvas;

    move-result-object v0

    const/4 v1, 0x0

    move v7, v1

    :goto_0
    iget-object v1, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    iget-object v1, v1, Lnbisdk/gu;->jI:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-ge v7, v1, :cond_3

    iget-object v1, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    invoke-virtual {v1, v7}, Lnbisdk/gu;->ac(I)Lnbisdk/lm;

    move-result-object v4

    invoke-virtual {v4}, Lnbisdk/lm;->it()Z

    move-result v1

    if-nez v1, :cond_0

    if-nez v6, :cond_1

    iget-object v1, p0, Lnbisdk/qj;->ba:Landroid/graphics/Paint;

    const/4 v2, -0x1

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setColor(I)V

    invoke-virtual {v4}, Lnbisdk/lm;->ip()I

    move-result v1

    int-to-float v1, v1

    invoke-virtual {v4}, Lnbisdk/lm;->iq()I

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v4}, Lnbisdk/lm;->ip()I

    move-result v3

    invoke-virtual {v4}, Lnbisdk/lm;->cc()I

    move-result v5

    add-int/2addr v3, v5

    int-to-float v3, v3

    invoke-virtual {v4}, Lnbisdk/lm;->iq()I

    move-result v5

    invoke-virtual {v4}, Lnbisdk/lm;->cc()I

    move-result v4

    add-int/2addr v4, v5

    int-to-float v4, v4

    iget-object v5, p0, Lnbisdk/qj;->ba:Landroid/graphics/Paint;

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    :cond_0
    add-int/lit8 v1, v7, 0x1

    move v7, v1

    goto :goto_0

    :cond_1
    invoke-virtual {v4}, Lnbisdk/lm;->ip()I

    move-result v1

    invoke-virtual {v4}, Lnbisdk/lm;->iq()I

    move-result v2

    invoke-virtual {v4}, Lnbisdk/lm;->cc()I

    move-result v3

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v5

    add-int v8, v1, v3

    add-int/2addr v3, v2

    :goto_1
    if-ge v1, v8, :cond_0

    move v9, v2

    :goto_2
    if-ge v9, v3, :cond_2

    int-to-float v10, v1

    int-to-float v11, v9

    const/4 v12, 0x0

    invoke-virtual {v0, v6, v10, v11, v12}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    add-int/2addr v9, v5

    goto :goto_2

    :cond_2
    add-int/2addr v1, v4

    goto :goto_1

    :cond_3
    return-void
.end method

.method private kE()V
    .locals 3

    const/4 v1, 0x1

    new-instance v0, Lnbisdk/y;

    invoke-direct {v0}, Lnbisdk/y;-><init>()V

    iput-object v0, p0, Lnbisdk/qj;->xf:Lnbisdk/y;

    iget-object v0, p0, Lnbisdk/qj;->aA:Lnbisdk/ao;

    invoke-virtual {v0}, Lnbisdk/ao;->ai()Lnbisdk/kr;

    move-result-object v0

    iget v0, v0, Lnbisdk/kr;->pH:I

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lnbisdk/qj;->xc:Lnbisdk/gu;

    iget-object v0, v0, Lnbisdk/gu;->jI:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    sub-int/2addr v0, v1

    :goto_0
    if-ltz v0, :cond_1

    iget-object v1, p0, Lnbisdk/qj;->xc:Lnbisdk/gu;

    invoke-virtual {v1, v0}, Lnbisdk/gu;->ac(I)Lnbisdk/lm;

    move-result-object v1

    iget-object v2, p0, Lnbisdk/qj;->xf:Lnbisdk/y;

    invoke-direct {p0, v1, v0, v2}, Lnbisdk/qj;->a(Lnbisdk/lm;ILnbisdk/y;)V

    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_1
    iget-object v1, p0, Lnbisdk/qj;->xc:Lnbisdk/gu;

    iget-object v1, v1, Lnbisdk/gu;->jI:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    iget-object v1, p0, Lnbisdk/qj;->xc:Lnbisdk/gu;

    invoke-virtual {v1, v0}, Lnbisdk/gu;->ac(I)Lnbisdk/lm;

    move-result-object v1

    iget-object v2, p0, Lnbisdk/qj;->xf:Lnbisdk/y;

    invoke-direct {p0, v1, v0, v2}, Lnbisdk/qj;->a(Lnbisdk/lm;ILnbisdk/y;)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_1
    return-void
.end method

.method private kF()V
    .locals 4

    const/4 v3, 0x0

    move v0, v3

    :goto_0
    iget-object v1, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    iget-object v1, v1, Lnbisdk/gu;->jI:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    iget-object v1, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    invoke-virtual {v1, v0}, Lnbisdk/gu;->ac(I)Lnbisdk/lm;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/lm;->iv()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v1, v3}, Lnbisdk/lm;->E(Z)V

    invoke-virtual {v1}, Lnbisdk/lm;->is()V

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method private kG()V
    .locals 10

    iget-object v0, p0, Lnbisdk/qj;->xf:Lnbisdk/y;

    invoke-virtual {v0}, Lnbisdk/y;->G()Ljava/util/Enumeration;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/y$b;

    iget-object v2, p0, Lnbisdk/qj;->xc:Lnbisdk/gu;

    iget v3, v0, Lnbisdk/y$b;->rk:I

    invoke-virtual {v2, v3}, Lnbisdk/gu;->ac(I)Lnbisdk/lm;

    move-result-object v2

    iget-object v3, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    iget v4, v0, Lnbisdk/y$b;->rl:I

    invoke-virtual {v3, v4}, Lnbisdk/gu;->ac(I)Lnbisdk/lm;

    move-result-object v3

    invoke-virtual {v2}, Lnbisdk/lm;->it()Z

    move-result v4

    invoke-static {v4}, Ljunit/framework/Assert;->assertTrue(Z)V

    invoke-virtual {v3, v2}, Lnbisdk/lm;->c(Lnbisdk/lm;)V

    iget v4, v0, Lnbisdk/y$b;->rk:I

    iget v0, v0, Lnbisdk/y$b;->rl:I

    if-eq v4, v0, :cond_0

    iget-object v0, p0, Lnbisdk/qj;->xg:Lnbisdk/ij;

    invoke-virtual {v0}, Lnbisdk/ij;->ke()Landroid/graphics/Canvas;

    move-result-object v0

    iget-object v4, p0, Lnbisdk/qj;->xg:Lnbisdk/ij;

    invoke-virtual {v4}, Lnbisdk/ij;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v4

    iget-object v5, p0, Lnbisdk/qj;->xh:Landroid/graphics/Rect;

    invoke-virtual {v2}, Lnbisdk/lm;->ip()I

    move-result v6

    invoke-virtual {v2}, Lnbisdk/lm;->iq()I

    move-result v7

    invoke-virtual {v2}, Lnbisdk/lm;->ip()I

    move-result v8

    invoke-virtual {v2}, Lnbisdk/lm;->cc()I

    move-result v9

    add-int/2addr v8, v9

    invoke-virtual {v2}, Lnbisdk/lm;->iq()I

    move-result v9

    invoke-virtual {v2}, Lnbisdk/lm;->cc()I

    move-result v2

    add-int/2addr v2, v9

    invoke-virtual {v5, v6, v7, v8, v2}, Landroid/graphics/Rect;->set(IIII)V

    iget-object v2, p0, Lnbisdk/qj;->xi:Landroid/graphics/Rect;

    invoke-virtual {v3}, Lnbisdk/lm;->ip()I

    move-result v5

    invoke-virtual {v3}, Lnbisdk/lm;->iq()I

    move-result v6

    invoke-virtual {v3}, Lnbisdk/lm;->ip()I

    move-result v7

    invoke-virtual {v3}, Lnbisdk/lm;->cc()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {v3}, Lnbisdk/lm;->iq()I

    move-result v8

    invoke-virtual {v3}, Lnbisdk/lm;->cc()I

    move-result v3

    add-int/2addr v3, v8

    invoke-virtual {v2, v5, v6, v7, v3}, Landroid/graphics/Rect;->set(IIII)V

    iget-object v2, p0, Lnbisdk/qj;->xh:Landroid/graphics/Rect;

    iget-object v3, p0, Lnbisdk/qj;->xi:Landroid/graphics/Rect;

    const/4 v5, 0x0

    invoke-virtual {v0, v4, v2, v3, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    goto :goto_0

    :cond_1
    return-void
.end method


# virtual methods
.method public final M(Z)V
    .locals 4

    iget-object v0, p0, Lnbisdk/qj;->xc:Lnbisdk/gu;

    iget-object v0, v0, Lnbisdk/gu;->jI:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    iget-object v1, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    iget-object v1, v1, Lnbisdk/gu;->jI:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-eq v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    new-instance v0, Ljava/util/Hashtable;

    invoke-direct {v0}, Ljava/util/Hashtable;-><init>()V

    iput-object v0, p0, Lnbisdk/qj;->xe:Ljava/util/Hashtable;

    const/4 v0, 0x0

    :goto_1
    iget-object v1, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    iget-object v1, v1, Lnbisdk/gu;->jI:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    iget-object v1, p0, Lnbisdk/qj;->xd:Lnbisdk/gu;

    invoke-virtual {v1, v0}, Lnbisdk/gu;->ac(I)Lnbisdk/lm;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/lm;->ir()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/lang/Integer;

    invoke-direct {v2, v0}, Ljava/lang/Integer;-><init>(I)V

    iget-object v3, p0, Lnbisdk/qj;->xe:Ljava/util/Hashtable;

    invoke-virtual {v3, v1, v2}, Ljava/util/Hashtable;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    invoke-direct {p0}, Lnbisdk/qj;->kE()V

    invoke-direct {p0}, Lnbisdk/qj;->kG()V

    invoke-direct {p0}, Lnbisdk/qj;->kF()V

    if-eqz p1, :cond_0

    invoke-direct {p0}, Lnbisdk/qj;->ar()V

    goto :goto_0
.end method
